<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/5/14
 * Time: 20:15
 */

namespace app\mobile\validate;


use think\Validate;

class Massage extends Validate
{
    protected $rule = [
        'username'  =>'require',
        'telephone'  =>'require|mobile',
        'email'  =>'email',
        'content'  =>'require',
        '__token__' => 'require|token'
    ];

    protected $message = [
        'username.require' => '姓名不能为空',
        'telephone.require' => '手机号不能为空',
        'telephone.mobile' => '手机号格式不正确',
        'email.email' => '邮箱格式不正确',
        'content.require' => '内容不能为空',
        '__token__.token'    => '你已经提交过了',
    ];



}